<?php /* Smarty version 2.6.18, created on 2012-10-24 18:06:14
         compiled from includes/barTop.tpl */ ?>
<div class="headbar-wrap">
	<a href="http://localhost/delivery/">
		<div class="logode">
			<font color="white">Delivery351.com</font>
		</div>
	</a>


	  	<div id="user" style="float:right; padding-right:70px; padding-top:18px;">
		<?php if ($this->_tpl_vars['sesion'] == 1): ?>
			<div style="text-align:right; margin:10px; margin-top:-10px;">
				<font size="2" color="white"><?php echo $this->_tpl_vars['lang']['welcome_back']; ?>
</font>
				<a href="?act=reg">
					<font size="2" color="white"> <b> <u> <?php echo $this->_tpl_vars['datosUser']['0']['name']; ?>
 <?php echo $this->_tpl_vars['datosUser']['0']['last_name']; ?>
</u></font>
				</a>
      		
      		&nbsp;&nbsp;|&nbsp;&nbsp;
      		
        		<a href="?act=reg">
        			<?php echo $this->_tpl_vars['lang']['view_profile']; ?>

        		</a>
        		
        		&nbsp;&nbsp;|&nbsp;&nbsp;
        		
        		<a href="?act=reg&action=<?php echo $this->_tpl_vars['lang']['logout_button']; ?>
">
        			<?php echo $this->_tpl_vars['lang']['logout_button']; ?>

        		</a>
        	</div>
		<?php else: ?>    
      	<p>
      		<?php echo $this->_tpl_vars['lang']['login_message']; ?>

      		<a href="?act=reg&showReg=true;">
      			<?php echo $this->_tpl_vars['lang']['register_button']; ?>

      		</a>
      	</p>  
      	
      	<form action="?act=reg" method="post" id="loginForm">
        		<input type="hidden" name="return" value="http://localhost/delivery/index.php" />
        		
        		<table width="30%" border="0" cellspacing="3" cellpadding="3">
          		<tr>
            		<td><?php echo $this->_tpl_vars['lang']['email']; ?>
:</td>
            		<td><input type="text" name="email" class="required email" value="<?php echo $_POST['email']; ?>
"/></td>
          		</tr>
          		
          		<tr>
            		<td><?php echo $this->_tpl_vars['lang']['password']; ?>
:</td>
            		<td><input type="password" name="password" class="required" /></td>
          		</tr>
          		
          		<tr>
            		<td  colspan="2" >
              			<input type="submit" name="action" value="<?php echo $this->_tpl_vars['lang']['login']; ?>
" />
              			<a href="?act=password"><?php echo $this->_tpl_vars['lang']['reset_password']; ?>
</a>
            		</td>
          		</tr>
        		</table>
      	</form>                
      <?php endif; ?>
	</div> 

</div>

 </div>
<div class="topRow">

	<ul class="userNavigation">
	    <li class="logged_in first" style="display: none; ">Hey, 
	        <span class="username"></span>
	    </li>
	    
    	<li class="logged_out" style=""><a onclick="WidgetCenter.get('login_form_lightbox').show(); return false;" href="#">Login</a></li>
		<li class="logged_in withaction_click select accountDropdown" style="display: none; " onclick="toggle_select_click(this);">
	    	My account
	        <span class="moar">
	            <ul>
					<li onclick="user.show_preferences(); return false;">Settings</li>
					<li onclick="WidgetCenter.get('useraddresses_lightbox').show();return false;">Addresses</li>
					<li onclick="user.logout(); return false;" href="#">Logout</li>
				    
	            </ul>
	        </span>
	    </li>
	</ul>
	<div clss="clearer"></div>
</div>



